import request from "@/api/index"

export default{
  /**
   * @description: 添加部门 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/base/department/add"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 编辑部门 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/base/department/edit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 单个删除部门 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/base/department/delById"
    return request.get(url,params)
  },
  /**
   * @description: 单个删除部门 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/base/department/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 分页查询基地 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryByCondition(params){
    const url = "base/department/queryByCondition"
    return request.post(url,{
      ...params
    })
   },
  /**
   * @description: 分页查询基地 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "base/department/queryPageByCondition"
    return request.post(url,{
      ...params
    })
   }
}
